﻿using Ninject;

namespace HobSoft.SoccerBet2014.Client
{
    using ViewModels;
    public class ServiceLocator
    {
        private readonly IKernel kernel;

        public ServiceLocator()
        {
            kernel = new StandardKernel(new RepositoryIocModule()
                                                        , new ApplicationIocModule());
            kernel.Settings.InjectNonPublic = true;
        }

        public BetShellModel BetShellModels
        {
            get
            {
                return kernel.Get<BetShellModel>();
            }
        }

        public OddsTypeShellModels OddsTypeShellModels
        {
            get
            {
                return kernel.Get<OddsTypeShellModels>();
            }
        }

        public AccountShellModel AccountShellModels
        {
            get
            {
                return kernel.Get<AccountShellModel>();
            }
        }

        public LogShellModel InfoLog
        {
            get
            {
                return kernel.Get<LogShellModel>();
            }
        }

        public ConfigurationShellModel ConfigShellModels
        {
            get
            {
                return kernel.Get<ConfigurationShellModel>();
            }
        }

        public OrderShellModel OrderShellModels
        {
            get
            {
                return kernel.Get<OrderShellModel>();
            }
        }
    }

}
